package com.example.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * @program: sms
 * @description:
 * @author: zhanghz001
 * @create: 2020-11-04 10:54
 **/
// @WebFilter("/DemoServlet01")
public class FilterDemo03 implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        System.out.println("FilterDemo03 init");
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
            ServletException {
        System.out.println("FilterDemo03 拦截了 filterDemo1  ");
        chain.doFilter(request, response);
    }

    @Override
    public void destroy() {
        System.out.println("FilterDemo03 destroy");

    }
}
